<template>
  <div class="app">
    <Navbar />
    <div class="main-content">
      <router-view />
    </div>
  </div>
</template>

<script setup>
import { provideCourseStore } from './stores/course'
import { provideTeacherStore } from './stores/teacher'
import Navbar from './components/Navbar.vue'

// 提供状态管理
provideCourseStore()
provideTeacherStore()
</script>

<style>
.app {
  min-height: 100vh;
  background-color: var(--bg-color);
}

.main-content {
  padding-top: 64px;
  min-height: calc(100vh - 64px);
}
</style>
